package org.vincen.helloworld.rubbish;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import sun.misc.BASE64Encoder;

public class R20130709 {

	public static void main(String[] args) {
		BASE64Encoder encoder = new BASE64Encoder();
		System.out.println("input your username:");
		String username = "";
		String password = "";
		try {
			username = new BufferedReader(new InputStreamReader(System.in)).readLine();
		} catch (IOException e) {
			e.printStackTrace();
		}
		System.out.println(encoder.encode(username.getBytes()));
		System.out.println("input your password:");
		try {
			password = new BufferedReader(new InputStreamReader(System.in)).readLine();
		}catch(IOException e){
			e.printStackTrace();
		}
		System.out.println(encoder.encode(password.getBytes()));
	}

}
